package com.hqq.action.inherit.strategy;

/**
 * AbstractCalculator 辅助类
 * Created by heqianqian on 2017/3/11.
 */
public abstract class AbstractCalculator {
    public int[] split(String exp,String opt){
        String arry[] = exp.split(opt);
        int arrayInt[] = new int[2];
        arrayInt[0] = Integer.parseInt(arry[0]);
        arrayInt[1] = Integer.parseInt(arry[1]);
        return arrayInt;
    }
}
